-- GENERATED SPELL FOR [Lair Brute] --


function spell0_19389(pUnit, Event) --@Charge,n/a--
pUnit:FullCastSpellOnTarget(24193,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_19389', 2336, 1)
end

function spell1_19389(pUnit, Event) --@Cleave,n/a--
pUnit:FullCastSpellOnTarget(39174,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_19389', 0, 1)
end

function spell2_19389(pUnit, Event) --@Mortal Strike,n/a--
pUnit:FullCastSpellOnTarget(39171,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_19389', 5340, 1)
end

function Sorts_19389(pUnit, Event)
local choix_sorts_19389 = math.random(0, 2)
if choix_sorts_19389 == 0 then
pUnit:RegisterEvent('spell0_19389', 1, 1)
end
if choix_sorts_19389 == 1 then
pUnit:RegisterEvent('spell1_19389', 1, 1)
end
if choix_sorts_19389 == 2 then
pUnit:RegisterEvent('spell2_19389', 1, 1)
end
end

function mob19389_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_19389', math.random(1500, 3000), 1)
end

function mob19389_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob19389_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob19389_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(19389, 1, 'mob19389_Action')
RegisterUnitEvent(19389, 2, 'mob19389_Leave')
RegisterUnitEvent(19389, 3, 'mob19389_Kill')
RegisterUnitEvent(19389, 4, 'mob19389_Die')
